import Vue from 'vue';
import Vuex from 'vuex';
import getters from './getters.js';

import user from './modules/user.js';
import stock from '@/pages/stock/stockList/_store/index.js';

import changeStock from '@/pages/stock/changeStock/_store/index.js';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    user,
    stock,
    changeStock
  },
  getters,
  actions: {
    loginByWxReq: user.actions.loginByWxReq
  }
});

export default store;
